package com.runfast.paotui.dao.model;

import java.io.Serializable;
import java.util.Date;

/**
 * business_hours
 * @author
 */
public class BusinessHours implements Serializable {
    private Integer id;

    private String name;

    private Date createTime;

    private Date updateTime;

    private Integer createBy;

    private Integer updateBy;

    private String firstStartTime;

    private String firstEndTime;

    private Integer firstPlanId;

    private String secondStartTime;

    private String secondEndTime;

    private Integer secondPlanId;

    private String thirdStartTime;

    private String thirdEndTime;

    private Integer thirdPlanId;

    private String fourthStartTime;

    private String fourthEndTime;

    private Integer fourthPlanId;

    private String fifthStartTime;

    private String fifthEndTime;

    private Integer fifthPlanId;

    private Integer agentId;

    private Boolean deleted;

    private Boolean defaultPlan;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public String getFirstStartTime() {
        return firstStartTime;
    }

    public void setFirstStartTime(String firstStartTime) {
        this.firstStartTime = firstStartTime;
    }

    public String getFirstEndTime() {
        return firstEndTime;
    }

    public void setFirstEndTime(String firstEndTime) {
        this.firstEndTime = firstEndTime;
    }

    public Integer getFirstPlanId() {
        return firstPlanId;
    }

    public void setFirstPlanId(Integer firstPlanId) {
        this.firstPlanId = firstPlanId;
    }

    public String getSecondStartTime() {
        return secondStartTime;
    }

    public void setSecondStartTime(String secondStartTime) {
        this.secondStartTime = secondStartTime;
    }

    public String getSecondEndTime() {
        return secondEndTime;
    }

    public void setSecondEndTime(String secondEndTime) {
        this.secondEndTime = secondEndTime;
    }

    public Integer getSecondPlanId() {
        return secondPlanId;
    }

    public void setSecondPlanId(Integer secondPlanId) {
        this.secondPlanId = secondPlanId;
    }

    public String getThirdStartTime() {
        return thirdStartTime;
    }

    public void setThirdStartTime(String thirdStartTime) {
        this.thirdStartTime = thirdStartTime;
    }

    public String getThirdEndTime() {
        return thirdEndTime;
    }

    public void setThirdEndTime(String thirdEndTime) {
        this.thirdEndTime = thirdEndTime;
    }

    public Integer getThirdPlanId() {
        return thirdPlanId;
    }

    public void setThirdPlanId(Integer thirdPlanId) {
        this.thirdPlanId = thirdPlanId;
    }

    public String getFourthStartTime() {
        return fourthStartTime;
    }

    public void setFourthStartTime(String fourthStartTime) {
        this.fourthStartTime = fourthStartTime;
    }

    public String getFourthEndTime() {
        return fourthEndTime;
    }

    public void setFourthEndTime(String fourthEndTime) {
        this.fourthEndTime = fourthEndTime;
    }

    public Integer getFourthPlanId() {
        return fourthPlanId;
    }

    public void setFourthPlanId(Integer fourthPlanId) {
        this.fourthPlanId = fourthPlanId;
    }

    public String getFifthStartTime() {
        return fifthStartTime;
    }

    public void setFifthStartTime(String fifthStartTime) {
        this.fifthStartTime = fifthStartTime;
    }

    public String getFifthEndTime() {
        return fifthEndTime;
    }

    public void setFifthEndTime(String fifthEndTime) {
        this.fifthEndTime = fifthEndTime;
    }

    public Integer getFifthPlanId() {
        return fifthPlanId;
    }

    public void setFifthPlanId(Integer fifthPlanId) {
        this.fifthPlanId = fifthPlanId;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Boolean getDefaultPlan() {
        return defaultPlan;
    }

    public void setDefaultPlan(Boolean defaultPlan) {
        this.defaultPlan = defaultPlan;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BusinessHours other = (BusinessHours) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
                && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
                && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
                && (this.getFirstStartTime() == null ? other.getFirstStartTime() == null : this.getFirstStartTime().equals(other.getFirstStartTime()))
                && (this.getFirstEndTime() == null ? other.getFirstEndTime() == null : this.getFirstEndTime().equals(other.getFirstEndTime()))
                && (this.getFirstPlanId() == null ? other.getFirstPlanId() == null : this.getFirstPlanId().equals(other.getFirstPlanId()))
                && (this.getSecondStartTime() == null ? other.getSecondStartTime() == null : this.getSecondStartTime().equals(other.getSecondStartTime()))
                && (this.getSecondEndTime() == null ? other.getSecondEndTime() == null : this.getSecondEndTime().equals(other.getSecondEndTime()))
                && (this.getSecondPlanId() == null ? other.getSecondPlanId() == null : this.getSecondPlanId().equals(other.getSecondPlanId()))
                && (this.getThirdStartTime() == null ? other.getThirdStartTime() == null : this.getThirdStartTime().equals(other.getThirdStartTime()))
                && (this.getThirdEndTime() == null ? other.getThirdEndTime() == null : this.getThirdEndTime().equals(other.getThirdEndTime()))
                && (this.getThirdPlanId() == null ? other.getThirdPlanId() == null : this.getThirdPlanId().equals(other.getThirdPlanId()))
                && (this.getFourthStartTime() == null ? other.getFourthStartTime() == null : this.getFourthStartTime().equals(other.getFourthStartTime()))
                && (this.getFourthEndTime() == null ? other.getFourthEndTime() == null : this.getFourthEndTime().equals(other.getFourthEndTime()))
                && (this.getFourthPlanId() == null ? other.getFourthPlanId() == null : this.getFourthPlanId().equals(other.getFourthPlanId()))
                && (this.getFifthStartTime() == null ? other.getFifthStartTime() == null : this.getFifthStartTime().equals(other.getFifthStartTime()))
                && (this.getFifthEndTime() == null ? other.getFifthEndTime() == null : this.getFifthEndTime().equals(other.getFifthEndTime()))
                && (this.getFifthPlanId() == null ? other.getFifthPlanId() == null : this.getFifthPlanId().equals(other.getFifthPlanId()))
                && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))
                && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
                && (this.getDefaultPlan() == null ? other.getDefaultPlan() == null : this.getDefaultPlan().equals(other.getDefaultPlan()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getFirstStartTime() == null) ? 0 : getFirstStartTime().hashCode());
        result = prime * result + ((getFirstEndTime() == null) ? 0 : getFirstEndTime().hashCode());
        result = prime * result + ((getFirstPlanId() == null) ? 0 : getFirstPlanId().hashCode());
        result = prime * result + ((getSecondStartTime() == null) ? 0 : getSecondStartTime().hashCode());
        result = prime * result + ((getSecondEndTime() == null) ? 0 : getSecondEndTime().hashCode());
        result = prime * result + ((getSecondPlanId() == null) ? 0 : getSecondPlanId().hashCode());
        result = prime * result + ((getThirdStartTime() == null) ? 0 : getThirdStartTime().hashCode());
        result = prime * result + ((getThirdEndTime() == null) ? 0 : getThirdEndTime().hashCode());
        result = prime * result + ((getThirdPlanId() == null) ? 0 : getThirdPlanId().hashCode());
        result = prime * result + ((getFourthStartTime() == null) ? 0 : getFourthStartTime().hashCode());
        result = prime * result + ((getFourthEndTime() == null) ? 0 : getFourthEndTime().hashCode());
        result = prime * result + ((getFourthPlanId() == null) ? 0 : getFourthPlanId().hashCode());
        result = prime * result + ((getFifthStartTime() == null) ? 0 : getFifthStartTime().hashCode());
        result = prime * result + ((getFifthEndTime() == null) ? 0 : getFifthEndTime().hashCode());
        result = prime * result + ((getFifthPlanId() == null) ? 0 : getFifthPlanId().hashCode());
        result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getDefaultPlan() == null) ? 0 : getDefaultPlan().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", firstStartTime=").append(firstStartTime);
        sb.append(", firstEndTime=").append(firstEndTime);
        sb.append(", firstPlanId=").append(firstPlanId);
        sb.append(", secondStartTime=").append(secondStartTime);
        sb.append(", secondEndTime=").append(secondEndTime);
        sb.append(", secondPlanId=").append(secondPlanId);
        sb.append(", thirdStartTime=").append(thirdStartTime);
        sb.append(", thirdEndTime=").append(thirdEndTime);
        sb.append(", thirdPlanId=").append(thirdPlanId);
        sb.append(", fourthStartTime=").append(fourthStartTime);
        sb.append(", fourthEndTime=").append(fourthEndTime);
        sb.append(", fourthPlanId=").append(fourthPlanId);
        sb.append(", fifthStartTime=").append(fifthStartTime);
        sb.append(", fifthEndTime=").append(fifthEndTime);
        sb.append(", fifthPlanId=").append(fifthPlanId);
        sb.append(", agentId=").append(agentId);
        sb.append(", deleted=").append(deleted);
        sb.append(", defaultPlan=").append(defaultPlan);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}